<?php
 
// Connect and query the database for the users

 
// Pick a filename and destination directory for the file
// Remember that the folder where you want to write the file has to be writable
$filename = "system/libraries/".time().".doc";
 
// Actually create the file
// The w+ parameter will wipe out and overwrite any existing file with the same name
$handle = fopen($filename, 'w+');
 
// Write the spreadsheet column titles / labels
//fputcsv($handle, array('Username','Email'));
fwrite($handle, 'saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');


 
// Write all the user records to the spreadsheet

 
// Finish writing the file
fclose($handle);
 
?>